<template>
  <div class="ad">
    <ul>
      <li
        v-for='(item,index) in adList'
        :key='index'
      >
        <img
          :src="item.imgUrl"
          alt="images/dhp.jpeg"
        />
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    adList: Array,
  },
  data() {
    return {};
  },
};
</script>

<style scoped>
.ad {
  width: 100%;
  /*   height: 112px; */
  /* 去除父元素的高 */
}
.ad img {
  width: 100%;
  height: 100%;
}
</style>
